package com.homedo.odin.solution.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @author ZhangLei
 * @date 2018-05-22
 * @description 产品资料需求
 */
@Data
@TableName("product_req")
public class ProductReq extends Model<ProductReq> {

    private static final long serialVersionUID = 1L;


    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "产品资料需求Id  productId")
    private Long id;
    /**
     * 用户标识
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户标识")
    private Integer userId;
    /**
     * 需求内容
     */
    @TableField(value = "content")
    @ApiModelProperty(value = "需求内容")
    private String content;
    /**
     * 跟踪记录
     */
    @TableField(value = "track_record")
    @ApiModelProperty(value = "跟踪记录")
    private String trackRecord;
    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    @ApiModelProperty(value = "提交时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;
    /**
     * 修改时间
     */
    @TableField(value = "modified_time")
    @ApiModelProperty(value = "操作时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifiedTime;
    /**
     * 修改用户
     */
    @TableField(value = "modified_by")
    @ApiModelProperty(value = "修改用户")
    private Long modifiedBy;
    /**
     * 操作人
     */
    @TableField(value = "operator")
    @ApiModelProperty(value = "操作人")
    private String operator;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户名")
    private String userName;

    @TableField(exist = false)
    @ApiModelProperty(value = "手机号")
    private String mobile;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
